<?php

class ThreadListTemplate {

    function paint($mode, & $children, & $data)
    {
        print "<a class=\"threadlisttitle\" href=\"?action=showThread&threadid="
            ."{$data['id']}&doc_id={$GLOBALS['doc_id']}\">{$data['title']}</a><br/>"
            ."<span class=\"threaddescription\">{$data['description']}</span><br/><br/>\n";
        if ((checkPermission('delete') && checkPermission('appLevel')) || $mode == 3)
        {
            print "<a href=\"?action=delThread&threadid={$data['id']}&"
                ."doc_id={$GLOBALS['doc_id']}\">"
                ."{$data['title']} l&ouml;schen</a><br/><br/>\n\n";
        }
    }
}
?>